<?php defined('IN_NWIDC') or exit('Access Invalid!');?>
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/layout.css" rel="stylesheet" type="text/css">

<!-- <div id='article_hepl' style='background:url(/static/images/article_help.gif) no-repeat;width:1149px;height:163px;margin:0 auto;margin-top:20px;'>
</div> -->
<style>
  
  .nch-breadcrumb-layout .wrapper{
    width: 1149px;
  }
  .nch-container.wrapper{
    width: 1149px;
  }
  .nch-container .left{
    width: 182px;
  }

</style>
<?php
  // include(templet('index',''));
  include(templet('article','index'));
?>
<?php if(false){?>
<script>
  $('.nch-breadcrumb-layout').insertAfter('#article_hepl')
</script>
<div class="nch-container wrapper articlepage">
  <div class="left">
    <div class="nch-module nch-module-style01">
      
      <?php
        $first = Model()->table('article_class')->select();
        foreach($first as $f){
      ?>
      <dl>
        <dt><?php echo $f['ac_name']?></dt>
        <?php

          $list = Model()->table('article')->where(array('ac_id' => $f['ac_id']))->order('article_sort')->select();
          foreach($list as $k => $ar){
        ?>
        <dd style="<?php if($k == 0){ echo 'border-top:0;';} ?>" <?php if($_GET['ac_id'] === $ar['article_id']){ echo 'class="selected"';}?>>
          <a href="<?php echo urlShop('article', 'article', array('ac_id'=>$ar['article_id']));?>"><?php echo $ar['article_title']?></a>
        </dd>
        <?php    
          }
        ?>
      </dl>
      <?php    
        }
      ?>




    </div>

  </div>
  <div class="right">
    <div class="nch-article-con">
      <?php
        $article = Model()->table('article')->find($_GET['ac_id']);
      ?>
      <div class="title-bar">
        <h3><?php echo $article['article_title'];?></h3>
      </div>
      
      <?php
        echo $article['article_content'];
      ?>


     
     
    </div> 
  
  </div>
</div>
<?php }?>